#include <iostream>
#include "task_executor.hpp"

using namespace std;

int main()
{
    cout << "Hello World!" << endl;

    auto exec = task_executor::create();
    std::vector<std::function<void()>> funcs = {
            [](){
        cout << "test 1" << endl;
    },
    [](){
        cout << "test 2" << endl;
    },
    [](){
        cout << "test 3" << endl;
    },
    [](){
        cout << "test 4" << endl;
    },
    [](){
        cout << "test 5" << endl;
    },
    [](){
        cout << "test 6" << endl;
    }
};
    exec->post([](){
        cout << "test 0" << endl;
    });
    for(auto func : funcs) {
        exec->post(func);
    }
    return 0;
}
